package com.guoheng.safe.sys.controller;

import com.guoheng.safe.common.base.Result;
import com.guoheng.safe.sys.dto.UserLoginDTO;
import com.guoheng.safe.sys.service.HazardMapService;
import com.guoheng.safe.sys.service.UserService;
import io.swagger.annotations.Api;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;
/**
 * 类功能描述:　HazardMapController
 *
 * @author Eternal
 * @date 2019-40-08 11:40
 */
@RestController
@Validated
@Api(value = "重大危险源一张图")
public class HazardMapController {

    @Resource
    HazardMapService hazardMapService;

    @PostMapping(value = "map/hazard")
    public Result getEnterprise(){
        return hazardMapService.getEnterprise();
    }
}
